package com.zhoukx.factory.factorymethod.pizzastore.order;

import com.zhoukx.factory.factorymethod.pizzastore.pizza.*;

/**
 * @ClassName LDOrderPizza
 * @Description: 伦敦pizza
 * @Author zhoukx
 * @Date 2020/8/6
 **/
public class LDOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")) {
            pizza = new LDCheesePizza();
        }else  if (orderType.equals("pepper")){
            pizza = new LDPepperPizza();
        }
        return pizza;
    }
}
